usingDew.Math;
usingDew.Math.Units;
namespace Dew.Examples()
{
void Example()
{
TVec a,b,c;
MtxVec.CreateIt(out a, out b, out c);
try
{
a.SetIt(false, newdouble[] {1,2,3,4}); // a = [1,2,3, 4] //magnitude
b.SetIt(false, newdouble[] {1,0,1,-1}); // b = [1,0,1,-1] /phase
c.PolarToCart(a,b); // result stored in c = projections to Re and Im axis
}
finally
{
MtxVec.FreeIt(ref a, ref b, ref c);
}
}
}
Copyright (c) 1999-2024 by Dew Research. All rights reserved.